package com.ruoyi.quality.service.impl;

import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.quality.domain.*;
import com.ruoyi.quality.mapper.TMessagePushMapper;
import com.ruoyi.quality.mapper.TQualityFileItemMapper;
import com.ruoyi.quality.service.IMessagePushService;
import com.ruoyi.quality.service.ITQualityFileItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 质量问题拆分明细Service业务层处理
 * 
 * @author mahl2
 * @date 2024-02-05
 */
@Service
public class TMessagePushServiceImpl implements IMessagePushService
{
    @Autowired
    private TMessagePushMapper tMessagePushMapper;


    @Override
    public TMessagePushFile getPushMessageDeal(Long revisePeopleId,Long projectId) {
//        return tMessagePushMapper.getPushMessageDeal(revisePeopleId,projectId);
        Map map = new HashMap();
        map.put("revisePeopleId",revisePeopleId);
        map.put("projectId",projectId);
        return tMessagePushMapper.getPushMessageDeal(map);
    }

    @Override
    public TMessagePushFile getPushMessageAudit(Long reviewUserNameId,Long projectId) {
        Map map = new HashMap();
        map.put("reviewUserNameId",reviewUserNameId);
        map.put("projectId",projectId);
        return tMessagePushMapper.getPushMessageAudit(map);
    }

    @Override
    public List<TIndexData> listProjectOverTime(TIndexData tIndexData) {
        return tMessagePushMapper.listProjectOverTime(tIndexData);
    }

    @Override
    public List<TIndexData1> statisticsCheckType(TIndexData1 data1) {
        return tMessagePushMapper.statisticsCheckType(data1);
    }

    @Override
    public List<TIndexData1> statisticsQuestionLevel(TIndexData1 tIndexData1) {
        return tMessagePushMapper.statisticsQuestionLevel(tIndexData1);
    }

    @Override
    public List<TIndexData2> statisticsSituation(TIndexData2 data2) {
        return tMessagePushMapper.statisticsSituation(data2);
    }

    @Override
    public List<TIndexData2> statisticsSituation1(TIndexData2 data2) {
        return tMessagePushMapper.statisticsSituation1(data2);
    }


    @Override
    public TMessagePushFile getPushMessageApproval(String revisePeopleId,Long projectId) {
        Map map = new HashMap();
        map.put("revisePeopleId",revisePeopleId);
        map.put("projectId",projectId);
        return tMessagePushMapper.getPushMessageApproval(map);
    }
}
